#!/usr/bin/env python 
# -*- coding:utf-8 -*-

import logging.config
import os
import sys

import ruamel.yaml as yaml

reload(sys)
sys.setdefaultencoding('utf8')

log_conf = './conf/logger.yaml'
if os.path.exists("logs"):
    pass
else:
    os.mkdir('logs')

config = yaml.load(open('./conf/logger.yaml', 'r').read(), Loader=yaml.Loader)

logging.config.dictConfig(config)
logger = logging.getLogger()
